Skip to content

Comments

fix(docs): correct U256 token amount#2791

Open
0x4tl4nt wants to merge 1 commit intotempoxyz:mainfrom
0x4tl4nt:decimals
Open

fix(docs): correct U256 token amount#2791
0x4tl4nt wants to merge 1 commit intotempoxyz:mainfrom
0x4tl4nt:decimals

Conversation

@0x4tl4nt
Copy link

Replace incorrect U256::from(100).pow(U256::from(10e6)) with U256::from(100_000_000) in tempo/crates/alloy/README.md to correctly represent 100 tokens (6 decimals).

Verified:

  • Using U256::from (100).pow(U256::from(100_000_000)) results in an extremely large value or a compilation problem.
  • The expression is correct and also matches the working examples in:
    • examples/transfer.rs
    • examples/transfer_with_memo.rs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant